# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ollydbg
pkgver=201g
pkgrel=8
groups=('blackarch' 'blackarch-debugger' 'blackarch-windows')
pkgdesc='A 32-bit assembler-level analysing debugger.'
arch=('x86_64')
url='http://www.ollydbg.de/'
license=('custom')
depends=('wine' 'wine_gecko' 'wine-mono')
makedepends=('unzip')
source=(ollydbg
        "http://www.ollydbg.de/odbg$pkgver.zip")
sha512sums=('ceeac2ba2eda2739a0ddc94c1e7edbb2fa83b6bc4e24af48b6150ea8bf430ae49f95c0d12f3a1d6edd49ceb2a27c5a9b1bb039d1e59027dea29de27e1393a467'
            '7409e5b462fa8a498d9b3f0216538bd30372420c73cac6d5da1928641130a48e309d066dbdf65c42af51025cccc549cf327d631299c665117a094384c09b712f')

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 "$pkgname.exe" \
    "$pkgdir/usr/share/windows/$pkgname/$pkgname.exe"
  install -Dm 644 dbghelp.dll "$pkgdir/usr/share/windows/$pkgname/dbghelp.dll"
}

